<!DOCTYPE html>
<html lang="en-US">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <title>Docker如何安装 | Reseed Puppy Wiki</title>
    <meta name="generator" content="VuePress 1.9.9">
    <link rel="icon" href="/reseed-puppy-wiki/img/logo.png">
    <meta name="description" content="Reseed Puppy  文档">
    <meta name="keywords" content="vuepress,theme,blog,vdoing">
    <meta name="theme-color" content="#5e72e4">
    
    <link rel="preload" href="/reseed-puppy-wiki/assets/css/0.styles.f7002203.css" as="style"><link rel="preload" href="/reseed-puppy-wiki/assets/js/app.3e5f56db.js" as="script"><link rel="preload" href="/reseed-puppy-wiki/assets/js/2.b6d1633d.js" as="script"><link rel="preload" href="/reseed-puppy-wiki/assets/js/20.59eddf84.js" as="script"><link rel="prefetch" href="/reseed-puppy-wiki/assets/js/10.13eceb7b.js"><link rel="prefetch" href="/reseed-puppy-wiki/assets/js/11.71bcc99b.js"><link rel="prefetch" href="/reseed-puppy-wiki/assets/js/12.c336065a.js"><link rel="prefetch" href="/reseed-puppy-wiki/assets/js/13.fd1a2e75.js"><link rel="prefetch" href="/reseed-puppy-wiki/assets/js/14.fdabb268.js"><link rel="prefetch" href="/reseed-puppy-wiki/assets/js/15.40b2bf3e.js"><link rel="prefetch" href="/reseed-puppy-wiki/assets/js/16.78bea78a.js"><link rel="prefetch" href="/reseed-puppy-wiki/assets/js/17.b87edab9.js"><link rel="prefetch" href="/reseed-puppy-wiki/assets/js/18.0eb15897.js"><link rel="prefetch" href="/reseed-puppy-wiki/assets/js/19.ef7debbe.js"><link rel="prefetch" href="/reseed-puppy-wiki/assets/js/21.0269d1af.js"><link rel="prefetch" href="/reseed-puppy-wiki/assets/js/22.4b3452c4.js"><link rel="prefetch" href="/reseed-puppy-wiki/assets/js/23.96bc8ee5.js"><link rel="prefetch" href="/reseed-puppy-wiki/assets/js/3.5efb8e81.js"><link rel="prefetch" href="/reseed-puppy-wiki/assets/js/4.e98915ca.js"><link rel="prefetch" href="/reseed-puppy-wiki/assets/js/5.e6db3fc4.js"><link rel="prefetch" href="/reseed-puppy-wiki/assets/js/6.b1d6de05.js"><link rel="prefetch" href="/reseed-puppy-wiki/assets/js/7.e292542f.js"><link rel="prefetch" href="/reseed-puppy-wiki/assets/js/8.8cd98918.js"><link rel="prefetch" href="/reseed-puppy-wiki/assets/js/9.4308edaa.js">
    <link rel="stylesheet" href="/reseed-puppy-wiki/assets/css/0.styles.f7002203.css">
  </head>
  <body class="theme-mode-light">
    <div id="app" data-server-rendered="true"><div class="theme-container sidebar-open have-rightmenu"><header class="navbar blur"><div title="目录" class="sidebar-button"><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" role="img" viewBox="0 0 448 512" class="icon"><path fill="currentColor" d="M436 124H12c-6.627 0-12-5.373-12-12V80c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12zm0 160H12c-6.627 0-12-5.373-12-12v-32c0-6.627 5.373-12 12-12h424c6.627 0 12 5.373 12 12v32c0 6.627-5.373 12-12 12z"></path></svg></div> <a href="/reseed-puppy-wiki/" class="home-link router-link-active"><!----> <span class="site-name">Reseed Puppy Wiki</span></a> <div class="links"><div class="search-box"><input aria-label="Search" autocomplete="off" spellcheck="false" value=""> <!----></div> <nav class="nav-links can-hide"><div class="nav-item"><a href="/reseed-puppy-wiki/" class="nav-link">主页</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="安装教程" class="dropdown-title"><!----> <span class="title" style="display:;">安装教程</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/reseed-puppy-wiki/guide/install/start/" class="nav-link">稳定版</a></li><li class="dropdown-item"><!----> <a href="/reseed-puppy-wiki/guide/dev/install/start/" aria-current="page" class="nav-link router-link-exact-active router-link-active">测试版</a></li></ul></div></div><div class="nav-item"><a href="/reseed-puppy-wiki/zhanzhu/" class="nav-link">赞助</a></div><div class="nav-item"><a href="/reseed-puppy-wiki/guide/dev/install/start/(https:/gitee.com/zxfsadly/reseed-puppy/issues).html" class="nav-link">反馈</a></div><div class="nav-item"><a href="https://hub.docker.com/r/szzhoubanxian/reseed-puppy" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Docker
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div> <a href="https://github.com/Reseed-Puppy/Reseed-Puppy" target="_blank" rel="noopener noreferrer" class="repo-link">
    GitHub
    <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></nav></div></header> <div class="sidebar-mask"></div> <div class="sidebar-hover-trigger"></div> <aside class="sidebar" style="display:none;"><!----> <nav class="nav-links"><div class="nav-item"><a href="/reseed-puppy-wiki/" class="nav-link">主页</a></div><div class="nav-item"><div class="dropdown-wrapper"><button type="button" aria-label="安装教程" class="dropdown-title"><!----> <span class="title" style="display:;">安装教程</span> <span class="arrow right"></span></button> <ul class="nav-dropdown" style="display:none;"><li class="dropdown-item"><!----> <a href="/reseed-puppy-wiki/guide/install/start/" class="nav-link">稳定版</a></li><li class="dropdown-item"><!----> <a href="/reseed-puppy-wiki/guide/dev/install/start/" aria-current="page" class="nav-link router-link-exact-active router-link-active">测试版</a></li></ul></div></div><div class="nav-item"><a href="/reseed-puppy-wiki/zhanzhu/" class="nav-link">赞助</a></div><div class="nav-item"><a href="/reseed-puppy-wiki/guide/dev/install/start/(https:/gitee.com/zxfsadly/reseed-puppy/issues).html" class="nav-link">反馈</a></div><div class="nav-item"><a href="https://hub.docker.com/r/szzhoubanxian/reseed-puppy" target="_blank" rel="noopener noreferrer" class="nav-link external">
  Docker
  <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></div> <a href="https://github.com/Reseed-Puppy/Reseed-Puppy" target="_blank" rel="noopener noreferrer" class="repo-link">
    GitHub
    <span><svg xmlns="http://www.w3.org/2000/svg" aria-hidden="true" focusable="false" x="0px" y="0px" viewBox="0 0 100 100" width="15" height="15" class="icon outbound"><path fill="currentColor" d="M18.8,85.1h56l0,0c2.2,0,4-1.8,4-4v-32h-8v28h-48v-48h28v-8h-32l0,0c-2.2,0-4,1.8-4,4v56C14.8,83.3,16.6,85.1,18.8,85.1z"></path> <polygon fill="currentColor" points="45.7,48.7 51.3,54.3 77.2,28.5 77.2,37.2 85.2,37.2 85.2,14.9 62.8,14.9 62.8,22.9 71.5,22.9"></polygon></svg> <span class="sr-only">(opens new window)</span></span></a></nav>  <ul class="sidebar-links"><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading open"><span>如何安装</span> <span class="arrow down"></span></p> <ul class="sidebar-links sidebar-group-items"><li><a href="/reseed-puppy-wiki/guide/dev/install/start/" aria-current="page" class="active sidebar-link">Docker如何安装</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header level2"><a href="/reseed-puppy-wiki/guide/dev/install/start/#镜像信息" class="sidebar-link">镜像信息</a><ul class="sidebar-sub-headers"><li class="sidebar-sub-header level3"><a href="/reseed-puppy-wiki/guide/dev/install/start/#docker-cli" class="sidebar-link">Docker CLI</a></li><li class="sidebar-sub-header level3"><a href="/reseed-puppy-wiki/guide/dev/install/start/#docker-yaml" class="sidebar-link">Docker yaml</a></li></ul></li><li class="sidebar-sub-header level2"><a href="/reseed-puppy-wiki/guide/dev/install/start/#版本更新" class="sidebar-link">版本更新</a></li></ul></li></ul></section></li><li><section class="sidebar-group collapsable depth-0"><p class="sidebar-heading"><span>测试版使用教程</span> <span class="arrow right"></span></p> <!----></section></li></ul> </aside> <div><main class="page"><div class="theme-vdoing-wrapper "><div class="placeholder"></div> <!----> <div class="content-wrapper"><div class="right-menu-wrapper"><div class="right-menu-margin"><div class="right-menu-title">目录</div> <div class="right-menu-content"></div></div></div> <h1><img src="">Docker如何安装<!----></h1>  <div class="theme-vdoing-content content__default"><blockquote><p>本项目建议使用 Docker 镜像！！！！</p></blockquote> <h2 id="镜像信息"><a href="#镜像信息" class="header-anchor">#</a> 镜像信息</h2> <ul><li>说明：<code>前端页面的端口是1997，1997,1997，没错作者的出生日期，绿联别再求我改了，我后端接口之前用的8787改成了18787，因为和iyuu冲突了，前端接口1919改为了1997，因为和RP冲突了，监控端口从2345改成了4545，因为和小雅冲突了，你们知道我就是因为改端口导致了开发效率低下的吗？？？？？</code></li> <li>镜像名称：<code>szzhoubanxian/reseed-puppy:dev</code></li> <li>请注意，这里是dev标签，latest目前还是稳定版</li> <li>镜像地址：<code>https://hub.docker.com/r/szzhoubanxian/reseed-puppy</code> <br></li></ul> <h3 id="docker-cli"><a href="#docker-cli" class="header-anchor">#</a> Docker CLI</h3> <div class="language-shell extra-class"><pre class="language-shell"><code><span class="token function">docker</span> run <span class="token parameter variable">-d</span> <span class="token punctuation">\</span>
  <span class="token parameter variable">--name</span><span class="token operator">=</span>Reseed-Puppy-Dev <span class="token punctuation">\</span>
  <span class="token parameter variable">-v</span> /path/to/database:/reseed-puppy/database <span class="token punctuation">\</span>
  <span class="token parameter variable">-v</span> /你的qb种子目录:/reseed-puppy/public/qb <span class="token punctuation">\</span>
  <span class="token parameter variable">-v</span> /你的qb1种子目录:/reseed-puppy/public/qb1 <span class="token punctuation">\</span>
  <span class="token parameter variable">-v</span> /你的tr种子目录:/reseed-puppy/public/tr <span class="token punctuation">\</span>
  <span class="token parameter variable">-v</span> /你的tr1种子目录:/reseed-puppy/public/tr1 <span class="token punctuation">\</span>
  <span class="token parameter variable">--network</span> <span class="token function">host</span> <span class="token punctuation">\</span>
  <span class="token parameter variable">--restart</span> unless-stopped <span class="token punctuation">\</span>
  szzhoubanxian/reseed-puppy:dev
</code></pre></div><p>上面的种子目录映射首先需要找到对应种子文件夹然后映射到容器内部
上面举例了多个下载器如何映射</p> <h3 id="docker-yaml"><a href="#docker-yaml" class="header-anchor">#</a> Docker yaml</h3> <div class="language-shell extra-class"><pre class="language-shell"><code>version: <span class="token string">&quot;3&quot;</span>
services:
  reseed-puppy:
    image: szzhoubanxian/reseed-puppy:dev
    container_name: Reseed-Puppy-Dev
    network_mode: <span class="token function">host</span>
    volumes:
      - <span class="token string">&quot;/数据库保存位置:/reseed-puppy/database&quot;</span>
      - <span class="token string">&quot;/你的qb种子目录:/reseed-puppy/public/qb&quot;</span> 
      - <span class="token string">&quot;/你的qb1种子目录:/reseed-puppy/public/qb1&quot;</span> 
      - <span class="token string">&quot;/你的tr种子目录:/reseed-puppy/public/tr&quot;</span> 
      - <span class="token string">&quot;/你的tr1种子目录:/reseed-puppy/public/tr1&quot;</span> 
    restart: unless-stopped
</code></pre></div><p>上面的种子目录映射首先需要找到对应种子文件夹然后映射到容器内部
上面举例了多个下载器如何映射</p> <h2 id="版本更新"><a href="#版本更新" class="header-anchor">#</a> 版本更新</h2> <ul><li>只要容器重启即可同步更新到最新版本，暂未开放自定义更新功能</li></ul></div></div>  <div class="page-edit"><!----> <!----> <!----></div> <div class="page-nav-wapper"><div class="page-nav-centre-wrap"><!----> <a href="/reseed-puppy-wiki/docs/dev/start/" class="page-nav-centre page-nav-centre-next"><div class="tooltip">首页展示</div></a></div> <div class="page-nav"><p class="inner"><!----> <span class="next"><a href="/reseed-puppy-wiki/docs/dev/start/">首页展示</a>→
      </span></p></div></div></div> <!----></main></div> <div class="footer"><!----> 
  Theme by
  <a href="https://github.com/xugaoyi/vuepress-theme-vdoing" target="_blank" title="本站主题">Vdoing</a> 
    | Copyright © 2023-2024
    <span></span></div> <div class="buttons"><div title="返回顶部" class="button blur go-to-top iconfont icon-fanhuidingbu" style="display:none;"></div> <div title="去评论" class="button blur go-to-comment iconfont icon-pinglun" style="display:none;"></div> <div title="主题模式" class="button blur theme-mode-but iconfont icon-zhuti"><ul class="select-box" style="display:none;"><li class="iconfont icon-zidong">
          跟随系统
        </li><li class="iconfont icon-rijianmoshi">
          浅色模式
        </li><li class="iconfont icon-yejianmoshi">
          深色模式
        </li><li class="iconfont icon-yuedu">
          阅读模式
        </li></ul></div></div> <!----> <!----> <!----></div><div class="global-ui"></div></div>
    <script src="/reseed-puppy-wiki/assets/js/app.3e5f56db.js" defer></script><script src="/reseed-puppy-wiki/assets/js/2.b6d1633d.js" defer></script><script src="/reseed-puppy-wiki/assets/js/20.59eddf84.js" defer></script>
  </body>
</html>
